﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace MySite.Models
{
    public class HealthReport
    {
        [Key]
        [Required]
        [Display(Name = "ID")]
        public int ID { get; set; }

        [Required]
        [Display(Name = "Report Name")]
        public string ReportName { get; set; }

        [Required]
        [Display(Name = "Date")]
        public DateTime Date { get; set; }

        [Required]
        [Display(Name = "Entries")]
        public List<HealthReportEntry> Entries { get; set; }

        private static int _id = 0;

        public HealthReport()
        {
            ID = _id++;
            Entries = new List<HealthReportEntry>();
        }
    }
}